/**
 * 
 */
package com.eej.util;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.util.Log;

/**
 * @author jlumietu
 *
 */
public class LoggerManager {

	public static Context context;
	
	/**
	 * 
	 * @param tag
	 * @param msg
	 */
	public static void debug(String tag, String msg){
		if( 0 != (context.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE ))
			Log.d(tag, msg);
	}
	
	/**
	 * 
	 * @return
	 */
	public static boolean isDebugmode(){
		return (0 != (context.getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE ));
	}
}
